import request from '@/utils/request'
// 获取权限点
export const fetchPermissionAPI = () => request.get('/sys/permission')
// 新增权限的
export const updatePermissionAPI = data => request.post('/sys/permission', data)
// 删除权限
export const RemovePermissionsAPI = id => request.delete(`/sys/permission/${id}`)
// 获取数据详情
export const AccessPermissionsAPI = id => request.get(`/sys/permission/${id}`)
// 编辑权限
export const EditPermissionsAPI = data => request.put(`/sys/permission/${data.id}`, data)
